﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RL
{
   public static class DataBindingEventExtensionMethods
   {
       public static DataBindingArgs Fire(this DataBindingEvent dataBindingEvent, string whereClause, string orderByClause,
           int pageSize, int pageIndex, params object [] extras)
       {
           if (dataBindingEvent == null) { throw new Exception("Set DataBinding Event"); }
           DataBindingArgs args = new DataBindingArgs(whereClause, orderByClause, pageIndex, pageSize, extras);
           dataBindingEvent(args);
           return args;
       }
   }
}